package com.neusoft.neuiotms.dcom.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.MaintainRule;
import com.neusoft.neuiotms.dcom.model.enums.MaintainRuleStatus;

public interface MaintainRuleRepository
        extends JpaRepository<MaintainRule, Long>, CustomizedMaintainRuleRepository {

    MaintainRule findByName(String name);

    MaintainRule getByCode(String ruleCode);

    List<MaintainRule> findByModelCode(String code);

    List<MaintainRule> findByModelCodeAndStatus(String code, MaintainRuleStatus status);
}
